﻿#if UNITY_NETWORK
using UnityEngine.Networking.Match;


namespace Manox.Libs.Networking.Unity
{
    /// <summary>
    /// Unity network match.
    /// </summary>
    public class UnityNetworkMatch : INetworkMatch
    {
        /// <summary>Name.</summary>
        public string Name {  get { return this.MatchDesc.name; } }

        /// <summary>Match description.</summary>
        public MatchDesc MatchDesc { get; private set; }


        /// <summary>
        /// Constructor.
        /// </summary>
        /// <param name="matchDesc"></param>
        public UnityNetworkMatch(MatchDesc matchDesc)
        {
            this.MatchDesc = matchDesc;
        }
    }
}
#endif